<?php

class RouteException extends Exception{

    const EXCEPTION_DEFAULT_MESSAGE = 'Page not found...';

    function __construct($message = self::EXCEPTION_DEFAULT_MESSAGE) {
        Lib::get('template')->render('errors/404', array(
            'message' => $message
        ));
        exit();
    }

}